package behavioral_pattern.command_pattern.test2;

/**
 * 增加命令类：具体命令
 */
public class InsertCommand extends Command {


    public InsertCommand(String name) {
        super(name);
    }

    @Override
    public void execute(String args) {
        this.args = args;
        this.configurator.insert(args);
    }

    @Override
    public void execute() {
        this.configurator.insert(this.args);
    }
}
